//
//  WBHomeViewController.swift
//  CCWeibo
//
//  Created by Chad on 2016/11/4.
//  Copyright © 2016年 Chad. All rights reserved.
//

import UIKit

class WBHomeViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    func showFriends() {
        print("FriendsShowed")
        
        let vc = WBTestViewController()
        navigationController?.pushViewController(vc, animated: true)
    }

}

extension WBHomeViewController {
    
    override func setupUI() {
        super.setupUI()
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "好友", style: .plain, target: self, action: #selector(showFriends))
    }
}
